<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
	<style type="text/css">
            .passw-div{display: flex;align-items: center;width: 100%;background-color: #FFFFFF;padding: 3% 6%;}
            .passw-div .pass-input{margin-bottom: 0;text-align: center;border: 0;}
            .mui-btn{margin-top: 5%;width: 100%;}
            .mui-content .showa{margin-top: 10%;}
		</style>
	</head>

	<body>
		
		<header class="mui-bar mui-bar-nav" id="header">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">修改密码</h1>
		</header>
		
		<div class="mui-content">
		    <div id="" class="passw-div showa">
		    	<input type="password" id="newpassword" class="pass-input" placeholder="输入新密码" />
		    </div>
		    
		    <div id="" class="passw-div">
		    	<input type="password" id="newpassword1" class="pass-input" placeholder="再次输入新密码" />
		    </div>
		    
		    <button type="button" class="mui-btn mui-btn-blue" id="toindex">确认</button>
		</div>
		
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/immersed.js" ></script>
		<script type="text/javascript">
			mui.init();
			mui.plusReady(function(){
				
				starbar();
				plus.navigator.setStatusBarStyle('dark');
				
				document.getElementById('toindex').addEventListener('tap',function(){
					var newpassword = document.getElementById('newpassword').value;
					var newpassword1 = document.getElementById('newpassword1').value;
					if(newpassword == "" || newpassword1 == ""){
						mui.alert('密码输入不能为空！')
					}else{
						if (newpassword != newpassword1) {
							mui.alert('新密码输入不一致！')
						} else{
							mui.openWindow({
								url: '../../index.html',
								 id: '../../index.html'
						    })
							plus.navigator.setStatusBarStyle('light');
						}
					}
				})
		   })
		</script>
	</body>

</html>